Repository navigation
fix(dock): use positioner coordinates for folder popup position [cherry-pick] - #1928
Merged
deepin-bot[bot] merged 1 commit intoDec 3, 2026
Conversation
1. Remove manual screen-bound clamping for folder popup X/Y coordinates 2. Use DockPanelPositioner coordinates directly for popup placement 3. Let the positioner handle boundary adjustment consistently 4. Simplify FolderPopup.qml positioning logic Log: Folder popup now uses positioner coordinates for placement Influence: Folder popup positioning becomes consistent with other dock popups fix(dock): 使用定位器坐标设置文件夹弹窗位置 1. 移除文件夹弹窗 X/Y 坐标的手动屏幕边界限制 2. 直接使用 DockPanelPositioner 坐标进行弹窗定位 3. 由定位器统一处理边界调整 4. 简化 FolderPopup.qml 的定位逻辑 Log: 文件夹弹窗改用定位器坐标进行定位 Influence: 文件夹弹窗定位与其他 Dock 弹窗保持一致 PMS: TASK-399569 (cherry picked from commit 89f55d7)
Reviewer's GuideUIUse the DockPanelPositioner’s coordinates directly for the folder popup and remove its manual screen-bound clamping.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="panels/dock/taskmanager/package/FolderPopup.qml" line_range="55-56" />
<code_context>
- Math.min(positionerAnchor.DockPanelPositioner.x, screenX + screenWidth - Panel.rootObject.x - width - 10))
- popupY: Math.max(screenY - Panel.rootObject.y + 10,
- Math.min(positionerAnchor.DockPanelPositioner.y, screenY + screenHeight - Panel.rootObject.y - height - 10))
+ popupX: positionerAnchor.DockPanelPositioner.x
+ popupY: positionerAnchor.DockPanelPositioner.y
+
closeOnInactive: !interactionActive && !Panel.contextDragging
</code_context>
<issue_to_address>
**Folder popup escapes usable screen area**
When the folder anchor is near a screen edge on Wayland or an available-work-area edge inset from the physical screen, `DockPanelPositioner` returns anchor-relative coordinates without constraining them to the available geometry, and `PanelPopupWindow` leaves them unclamped on Wayland and clamps only to physical screen bounds on X11, so the folder popup extends off-screen or overlaps reserved panels.
Clamp the popup coordinates to the available work area before displaying the folder popup.
</issue_to_address>
MyLeeJiEun
approved these changes
Dec 3, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: MyLeeJiEun, wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Contributor
Author
|
/forcemerge |
deepin-bot
Bot
merged commit Dec 3, 2026
1bd8b66
into
linuxdeepin:develop/2500u3
5 of 6 checks passed
|
This pr force merged! (status: blocked, merge_method: rebase) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
将 #1927 回移到
develop/2500u3,由DockPanelPositioner统一处理任务栏文件夹弹窗的定位和屏幕边界调整。PMS: TASK-399569
Summary by Sourcery
Bug Fixes: